#include "SQLCommentHint.h"

#include "../visitor/SQLASTVisitor.h"

SQLCommentHint::SQLCommentHint()
{
}

SQLCommentHint::~SQLCommentHint()
{
}

SQLCommentHint::SQLCommentHint(string_ptr theText)
{
  text = theText;
}

string_ptr SQLCommentHint::getText()
{
  return text;
}

void SQLCommentHint::setText(string_ptr theText)
{
  text = theText;
}

void SQLCommentHint::accept0(SQLASTVisitor_ptr  visitor)
{
  visitor->visit(SharedObject(SQLCommentHint));
  visitor->endVisit(SharedObject(SQLCommentHint));
}

// SQLCommentHint *SQLCommentHint::clone()
SQLObject_ptr  SQLCommentHint::clone()
{
  // return new SQLCommentHint(text);
  SQLObject_ptr  clone_tmp = SQLCommentHint_ptr(new SQLCommentHint(text));
  SQLCommentHint_ptr clone_res = std::dynamic_pointer_cast<SQLCommentHint>(clone_tmp);

  return clone_res;
}